#ifndef EDITARRAYORDERDLG_H
#define EDITARRAYORDERDLG_H

#include "scrollingdialog.h"
#include <wx/arrstr.h>

class EditArrayOrderDlg : public wxScrollingDialog {
  public:
    EditArrayOrderDlg( wxWindow* parent, const wxArrayString& array );
    ~EditArrayOrderDlg();
    EditArrayOrderDlg& operator=( const EditArrayOrderDlg& ) { return *this; }
    void SetArray( const wxArrayString& array ) { m_Array = array; }
    const wxArrayString& GetArray() { return m_Array; }
    void EndModal( int retCode );
    void OnMoveUp( wxCommandEvent& event );
    void OnMoveDown( wxCommandEvent& event );
    void OnUpdateUI( wxUpdateUIEvent& event );
  private:
    void DoFillList();
    wxArrayString m_Array;
    DECLARE_EVENT_TABLE()
};

#endif
